package com.example.restaurant.dao;

import com.example.restaurant.model.RolePer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
public interface RolePerMapper extends BaseMapper<RolePer> {

    @Select("select permission_id from role_per where role_id = #{roleId}")
    List<Integer> getPermissionId(@Param("roleId") int roleId);

}
